<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="page" tagdir="/WEB-INF/tags/page"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<page:defaultpage>
	<table>
		<thead>
			<tr>
				<th>Name</th>
				<th>InstanceId</th>
				<th>Class</th>
				<th>Running Since</th>
				<th>Number Of Jobs Executed</th>
				<th>Job Store Class</th>
				<th>Thread Pool Class</th>
				<th>Thread Pool Size</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${schedulers}" var="scheduler">
				<tr>
					<td><a href="<c:url value="/scheduler/${scheduler.metaData.schedulerName}"/>">${scheduler.metaData.schedulerName}</a></td>
					<td>${scheduler.metaData.schedulerInstanceId}</td>
					<td>${scheduler.schedulerClassName}</td>
					<td>
						<fmt:formatDate value="${scheduler.metaData.runningSince}" pattern="yyyy-MM-dd HH:mm:ss" var="runningSince" />
						<c:out value="${runningSince}" default="-" />
					</td>
					<td>${scheduler.metaData.numberOfJobsExecuted}</td>
					<td>${scheduler.jobStoreClassName}</td>
					<td>${scheduler.metaData.threadPoolClass}</td>
					<td>${scheduler.metaData.threadPoolSize}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</page:defaultpage>